package text;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lx on 2017/4/8.
 */
public class Kid {
    public boolean sleeping=true;
    List<Observer> observers = new ArrayList<Observer>();

    public void wakeup(){
        Event event = new Event(this,8);

        observers.stream().forEach(ob ->{
            ob.operation(event);
        });
    }
}
